from apps.schemas.user import UserResponse
from fastapi import APIRouter
from apps.models import User,Login

user = APIRouter()
@user.get('/get_user_id/{username}',response_model=list[UserResponse])
async def get_user_id(username: str):
    log = await Login.filter(username=username).first()
    return await User.filter(login_id=log.id)
